package com.jfs.strategy.message.impl;


import com.jfs.enums.MessageEnum;
import com.jfs.envent.EventPublisher;
import com.jfs.observer.request.abstracts.AbstractProcessor;
import com.jfs.strategy.message.MessageStrategy;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.sip.RequestEvent;

/**
 * @Description 设备状态策略处理类
 * @E-mail cwm3412638@163.com
 * @Author cwm
 * @Date 2022/8/1
 */
@Component
@Slf4j
@AllArgsConstructor
public class MessageDeviceStatusStrategy implements MessageStrategy {
    private final EventPublisher eventPublisher;

    @Override
    public boolean support(String content) {
        return content.contains(MessageEnum.MESSAGE_DEVICE_STATUS.getCmd());
    }

    @Override
    public void processor(String content, AbstractProcessor abstractProcessor, RequestEvent requestEvent) {
    }
}
